const state = {
    article: {}
}
const actions = {
    saveArticle: ({ commit }, payload) => {
        commit('SAVEARTICLE', payload)
    },
    clearArticle: ({ commit }) => {
        commit('CLEARARTICLE')
    }
}
const mutations = {
    SAVEARTICLE: (state, payload) => {
        state.article = payload
    },
    CLEARARTICLE: (state) => {
        state.article = {}
    }
}
export default {
    state,
    actions,
    mutations
}